package com.gzc.pm.dao;

import java.util.List;

import com.gzc.pm.bean.EquipmentBean;

import cn.skyclass.ibatis.IBatisDao;

public class EquipmentDao {

	private IBatisDao dao = new IBatisDao();
	
	@SuppressWarnings("unchecked")
	public List<EquipmentBean> getInProcIds(String idsStr){
		return dao.getList("Equipment.getInProcIds", idsStr);
	}
	
	
	@SuppressWarnings("unchecked")
	public List<EquipmentBean> getInfoByPlId(int plId){
		return dao.getList("Equipment.getInfoByPlId", plId);
	}
	
	@SuppressWarnings("unchecked")
	public List<EquipmentBean> getEquInfoByPlId(int plId){
		return dao.getList("Equipment.getEquInfoByPlId", plId);
	}
	
	public EquipmentBean getInfoByEquId(int equId){
		return (EquipmentBean)dao.getObject("Equipment.getInfoByEquId", equId);
	}
	
	
	
	
}
